<div class="dbcontain">
    <div class=" tran3 imgcover banner _text_teriary"  style="background-image:url('./static/img/banner1.png')" >

        <div class="logowhite imgcontain"  style="background-image:url('./static/img/logo-white.png')"></div>
        <div class="slogen">最好的职业教育服务者</div>

    </div>
</div>

<div class="dbcontain _bg_dark ">
    <div class="limit-width m0auto tran3" >

        <div class="tabheader m0auto">

            <div class="borderline dib">
                <span class="activeline dib  tran5"></span>
            </div>

            <ul class="clearfix m0auto tc dib">
                <li class="tabitem  tran3 pull-left  active " data-swiper="hlw">
                    <p class="tabtitle">互联网</p>
                    <p class="tabsubtitle fs-xs">新职教 新实训</p>
                </li>
                <li class="tabitem  tran3 pull-left   "  data-swiper="xdjg"> 
                    <p class="tabtitle">现代加工</p>
                    <p class="tabsubtitle fs-xs">培养人才一才多用</p>
                </li>
                <li class="tabitem  tran3 pull-left   "  data-swiper="gyjqr"> 
                    <p class="tabtitle">工业机器人</p>
                    <p class="tabsubtitle fs-xs">职业教育解决方案</p>
                </li>
                <li class="tabitem  tran3 pull-left   "  data-swiper="xnyqc"> 
                    <p class="tabtitle">新能源汽车</p>
                    <p class="tabsubtitle fs-xs">未来新动力</p>

                </li>
                <li class="tabitem  tran3 pull-left   "  data-swiper="jmzz"> 
                    <p class="tabtitle">精密制造</p>
                    <p class="tabsubtitle fs-xs">专业求甑</p>
                </li>
            </ul>
        </div>

    </div>
</div>

<div class="dbcontain imgcover swiperbg" style="background-image:url('./static/img/swiperbg.jpg')">
    <div class="limit-width m0auto tran3" >


        <div class="row sliderow goupgrade animated fadeIn" id="hlw">
            <div class="col-xs-12">
                <div class="pc50 fl slideimg imgcover" style="background-image:url('./static/img/hlw/1.jpg')"></div>
                <div class="pc50 fr slidetitle  center"> <span class="fs-xl">01</span>互联网</div>
            </div>  
            <div class="col-xs-12">
                <div class="slideimg imgcover" style="background-image:url('./static/img/hlw/2.jpg')"></div>

            </div>  
            <div class="col-xs-12">
                <div class="pc50 fr slideimg imgcover" style="background-image:url('./static/img/hlw/3.jpg')"></div>
                <div class="pc50 fl slidetitle  center">新职教 新实训</div>
            </div>  
        </div>
      


        <div class="row sliderow goupgrade animated fadeIn dn" id="xdjg">
            <div class="col-xs-12">
                <div class="pc50 fl slideimg imgcover" style="background-image:url('./static/img/xdjg/1.jpg')"></div>
                <div class="pc50 fr slidetitle  center"> <span class="fs-xl">02</span>现代加工</div>
            </div>  
            <div class="col-xs-12">
                <div class="slideimg imgcover" style="background-image:url('./static/img/xdjg/2.jpg')"></div>

            </div>  
            <div class="col-xs-12">
                <div class="pc50 fr slideimg imgcover" style="background-image:url('./static/img/xdjg/3.jpg')"></div>
                <div class="pc50 fl slidetitle  center">培养人才一才多用</div>
            </div>  
        </div>


        <div class="row sliderow goupgrade animated fadeIn dn" id="gyjqr">
            <div class="col-xs-12">
                <div class="pc50 fl slideimg imgcover" style="background-image:url('./static/img/gyjqr/1.jpg')"></div>
                <div class="pc50 fr slidetitle  center"> <span class="fs-xl">03</span>工业机器人</div>
            </div>  
            <div class="col-xs-12">
                <div class="slideimg imgcover" style="background-image:url('./static/img/gyjqr/2.jpg')"></div>

            </div>  
            <div class="col-xs-12">
                <div class="pc50 fr slideimg imgcover" style="background-image:url('./static/img/gyjqr/3.jpg')"></div>
                <div class="pc50 fl slidetitle  center">职业教育解决方案</div>
            </div>  
        </div>

        <div class="row sliderow goupgrade animated fadeIn dn" id="xnyqc">
            <div class="col-xs-12">
                <div class="pc50 fl slideimg imgcover" style="background-image:url('./static/img/xnyqc/1.jpg')"></div>
                <div class="pc50 fr slidetitle  center"> <span class="fs-xl">04</span>新能源汽车</div>
            </div>  
            <div class="col-xs-12">
                <div class="slideimg imgcover" style="background-image:url('./static/img/xnyqc/2.jpg')"></div>

            </div>  
            <div class="col-xs-12">
                <div class="pc50 fr slideimg imgcover" style="background-image:url('./static/img/xnyqc/3.jpg')"></div>
                <div class="pc50 fl slidetitle  center">未来新动力</div>
            </div>  
        </div>

        <div class="row sliderow goupgrade animated fadeIn dn" id="jmzz">
            <div class="col-xs-12">
                <div class="pc50 fl slideimg imgcover" style="background-image:url('./static/img/jmzz/1.jpg')"></div>
                <div class="pc50 fr slidetitle  center"> <span class="fs-xl">05</span>精密制造</div>
            </div>  
            <div class="col-xs-12">
                <div class="slideimg imgcover" style="background-image:url('./static/img/jmzz/2.jpg')"></div>

            </div>  
            <div class="col-xs-12">
                <div class="pc50 fr slideimg imgcover" style="background-image:url('./static/img/jmzz/3.jpg')"></div>
                <div class="pc50 fl slidetitle  center">专业求甑</div>
            </div>  
        </div>


    </div>
</div>

<div class="dbcontain _bg_light">
    <div class="m0auto tran3 tr" >

        <div class="doubleslogen _text_secondary">
                <p class="chinesetitle">最好的职业教育服务者</p>
                <p class="englishtitle">Best professional education server</p>
        </div>

    </div>
</div>


<div class="dbcontain">
    <div class="m0auto tran3 tr" >

        <div class="video"><img class="dn"  src="./static/img/video2.gif" onload="changeimg();"></div>

    </div>
</div>




<style>
.back{
  display: none;
}

/*顶部图片*/
.banner{
    height:160px;
    padding:35px 0 ;

}

.banner .logowhite{

    height:60px;
    background-position: 5% 50%;

}

.banner .slogen{
    font-size:20px;
    text-align: right;
    padding-right:5px;
}


/*轮播图切换*/
.tabheader{
    position:relative;
    padding:10px 0;
}

.tabheader ul,.tabheader .borderline{
    width: 96%;
    margin-left:2%;
}

.tabheader  .tabitem{
   width:20%;
   cursor: pointer;
   color:#999;
}

.tabheader  .tabitem:hover{
    /*background:#333;*/
    color:#ccc;
}

.tabheader  .tabitem.active{
    /*background:#000;*/
    color:#eee;
}

.tabheader .borderline{
    height:9px;
    background:#000;
    padding:3px 0;
    margin-bottom:10px;
    border-radius:3px;
}
.tabheader .borderline .activeline{
    position: absolute;
    height:3px;
    border-radius:2px;
    background-color:#1e88e5;
    box-shadow:0 0 2px #ccc; 
    transform: scaleX(.9);
    -webkit-transform: scaleX(.9);
    -ms-transform: scaleX(.9);
}
.tabheader .tabitem{
  padding:0 2px;
}
.tabheader .tabitem .tabtitle{
 font-size:80%;
}

.tabheader .tabitem .tabsubtitle{
font-size:60%;

}



/*轮播图部分*/
.swiperbg{
    position: relative;
    padding:15px 0;
}

.swiperbg .swiperheader{

    margin-bottom:50px;
    padding:15px;

}

.swiperbg .swiperheader .swipertitle{

    font-size: 30px;
}

.swiperbg .swiperheader .swipersubtitle{

}


.sliderow{
  margin:0;
}
.sliderow>div{
  margin:5px 0;
}

.slideimg{
    height: 150px;
    border-radius:3px;
}
.slidetitle{
    height: 150px;
    padding:5px;
    font-size: 110%;
    background: rgba(255,255,255,.5);
}


/*最好的职业教育服务者*/
.doubleslogen{
    margin-top:20px;
    padding:10px;
    text-align:right;
}
.doubleslogen .chinesetitle{
}

.doubleslogen .englishtitle{


}


/*视频播放*/
.video{
    height:225px;
    overflow: hidden;
    width:100%;
    background-image:url('./static/img/videoload.jpg') ;
    background-position: center center;
    background-repeat: no-repeat;
    background-size:contain;
}




</style>

<script>

function changeimg(){
  $('.video').css('backgroundImage','url(./static/img/video2.gif)');
}

$(document).ready(function(){


    initTabitem();
    // initHomeSwiper('hlw');
    // initHomeSwiper('xdjg');
    // initHomeSwiper('gyjqr');
    // initHomeSwiper('xnyqc');
    // initHomeSwiper('jmzz');


    $('.goupgrade').on('click',function(){

      window.location.href="./wap.php?m=upgrade";

    })


    $('.tabitem').hover(

        function(){
            var that = $(this);

            var swiper = $(this).data('swiper');
            $('.sliderow').addClass('dn');
            $('#'+swiper).removeClass('dn');

            $('.tabitem').removeClass('active');
            that.addClass('active');

            var activeline = $('.tabheader .borderline .activeline');
            var width = $(this).innerWidth();
            var left = $(this).position().left;
            activeline.css({"left":left+'px',"width":width+'px'});

        },

        function(){
            // initTabitem();
            var that = $(this);
            var swiper = $(this).data('swiper');
            $('#'+swiper).removeClass('fadeIn'); //初次打开的时候渐显
        }

    )

  // document.getElementById('homevideo').play();//autoplay 失效，手动播放视频
})

function initHomeSwiper(id){

  var mySwiper = new Swiper ('#'+id+'-swiper', {
        autoplay: 3000,
        slidesPerView :1.5,
        centeredSlides: true,
        loop:true,
        lazyLoading : true,
        watchSlidesVisibility:true,
        observer:true,
        observeParents:true,
        pagination: {
          el: '.swiper-pagination',
          bulletElement : 'li',
          clickable:true
        },

        effect: 'coverflow', //3d滑动
        coverflow: {
            rotate: 0,  //设置为0
            stretch: 0,
            depth: 200,
            modifier: 2,
            slideShadows : true
        } 
    } ) ;


}


function initTabitem(){

    // var borderline = $('.tabheader .borderline');

    var tabheaderul = $('.tabheader>ul');

    var activeline = $('.tabheader .borderline .activeline');
    var activetabitem = $('.tabheader  .tabitem.active');
    var width = activetabitem.innerWidth();
    var left = activetabitem.position().left;

    activeline.css({"left":left+'px',"width":width+'px'});

    // borderline.css({"left":left+'px',"width":tabheaderul.width()})
}




</script>